﻿using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel;
using NewLife.Reflection;

namespace BingZi.HY.Core
{


    #region "框架枚举类型"
    /// <summary>
    /// 删除文件路径类型
    /// </summary>
    public enum DeleteFilePathType
    {
        /// <summary>
        /// 物理路径
        /// </summary>
        PhysicsPath = 1,
        /// <summary>
        /// 虚拟路径
        /// </summary>
        DummyPath = 2,
        /// <summary>
        /// 当前目录
        /// </summary>
        NowDirectoryPath = 3
    }

    /// <summary>
    /// 获取方式
    /// </summary>
    public enum MethodType
    {
        /// <summary>
        /// Post方式
        /// </summary>
        Post = 1,
        /// <summary>
        /// Get方式
        /// </summary>
        Get = 2
    }

    /// <summary>
    /// 获取数据类型
    /// </summary>
    public enum DataType
    {
        /// <summary>
        /// 字符
        /// </summary>
        Str = 1,
        /// <summary>
        /// 日期
        /// </summary>
        Dat = 2,
        /// <summary>
        /// 整型
        /// </summary>
        Int = 3,
        /// <summary>
        /// 长整型
        /// </summary>
        Long = 4,
        /// <summary>
        /// 双精度小数
        /// </summary>
        Double = 5,
        /// <summary>
        /// 只限字符和数字
        /// </summary>
        CharAndNum = 6,
        /// <summary>
        /// 只限邮件地址
        /// </summary>
        Email = 7,
        /// <summary>
        /// 只限字符和数字和中文
        /// </summary>
        CharAndNumAndChinese = 8

    }

    /// <summary>
    /// 表操作方法
    /// </summary>
    public enum DataTable_Action
    {
        /// <summary>
        /// 插入
        /// </summary>
        Insert = 0,
        /// <summary>
        /// 更新
        /// </summary>
        Update = 1,
        /// <summary>
        /// 删除
        /// </summary>
        Delete = 2
    }
    /// <summary>
    /// 缓存类型
    /// </summary>
    public enum OnlineCountType
    {
        /// <summary>
        /// 缓存
        /// </summary>
        Cache = 0,
        /// <summary>
        /// 数据库
        /// </summary>
        DataBase = 1
    }
    #endregion








    /// <summary>
    /// 任务类型
    /// </summary>
    public enum TaskActive
    {
        /// <summary>
        /// 一次
        /// </summary>
        [Text("一次")]
        One = 1,
        /// <summary>
        /// 重复
        /// </summary>
        [Text("重复")]
        Repeat = 2,
        /// <summary>
        /// 每小时
        /// </summary>
        [Text("每小时")]
        Everyhour = 3,
        /// <summary>
        /// 每天
        /// </summary>
        [Text("每天")]
        Everyday = 4,
        /// <summary>
        /// 每周
        /// </summary>
        [Text("每周")]
        EveryWeek = 5



    }





    /// <summary>
    /// 信息状态(0:未审核,1:正常,2:锁定,3:删除)
    /// </summary>
    public enum EnumState
    {
        /// <summary>
        /// 未审核
        /// </summary>
        [Text("未审核")]
        NoAudit = 0,
        /// <summary>
        /// 已审核
        /// </summary>
        [Text("已审核")]
        Normal = 1,
        /// <summary>
        /// 已锁定
        /// </summary>
        [Text("已锁定")]
        Lock = 2,
        /// <summary>
        /// 已删除
        /// </summary>
        [Text("已删除")]
        Delete = 3,
        /// <summary>
        /// 已过期
        /// </summary>
        [Text("已过期")]
        ForOverdue = 4,
        /// <summary>
        /// 未提交
        /// </summary>
        [Text("未提交")]
        NoSunbit = 5
    }

    /// <summary>
    /// 邮件类型
    /// </summary>
    public enum EnumMailType
    {
        /// <summary>
        /// 注册用户
        /// </summary>
        [Text("注册")]
        Register = 0,
        /// <summary>
        /// 找回密码
        /// </summary>
        [Text("找回密码")]
        ForgetPass = 1,
        /// <summary>
        /// 采集用户
        /// </summary>
        [Text("采集用户")]
        FetchUser = 2


    }


    /// <summary>
    /// 用户状态
    /// </summary>
    public enum EnumUserStatus
    {
        /// <summary>
        /// 正常
        /// </summary>
        [Text("正常")]
        Normal = 0,
        /// <summary>
        /// 禁止
        /// </summary>
        [Text("禁止")]
        Lock = 1,
    }

    /// <summary>
    /// 帮助类型
    /// </summary>
    public enum EnumHelpType
    {
        /// <summary>
        /// 分类
        /// </summary>
        [Text("分类")]
        Category = 0,
        /// <summary>
        /// 信息
        /// </summary>
        [Text("信息")]
        Info = 1,
        /// <summary>
        /// Html模块
        /// </summary>
        [Text("Html模块")]
        Html = 2
    }



    /// <summary>
    /// 其他1,正常0
    /// </summary>
    public enum EnumType
    {
        /// <summary>
        /// 正常
        /// </summary>
        [Text("正常")]
        Normal = 0,
        /// <summary>
        /// 其他
        /// </summary>
        [Text("其他")]
        Other = 1,
    }


    
 


    /// <summary>
    /// 供求信息类型
    /// </summary>
    public enum EnumInfoType
    {
        /// <summary>
        /// 供应信息
        /// </summary>
        [Text("供应")]
        Sale = 0,
        /// <summary>
        /// 求购信息
        /// </summary>
        [Text("求购")]
        Buy = 1,
        /// <summary>
        /// 库存信息
        /// </summary>
        [Text("库存")]
        Reserve = 2,
        /// <summary>
        /// 二手信息
        /// </summary>
        [Text("二手")]
        Old=3,
        /// <summary>
        /// 加工信息
        /// </summary>
        [Text("加工")]
        Process = 4,
        /// <summary>
        /// 合作信息
        /// </summary>
        [Text("合作")]
        Cooperation = 5,
        /// <summary>
        /// 代理信息
        /// </summary>
        [Text("代理")]
        Proxy = 6,
        /// <summary>
        /// 展会信息
        /// </summary>
        [Text("展会")]
        Expo = 7,
        /// <summary>
        /// 租赁信息
        /// </summary>
        [Text("租赁")]
        Lease = 8,

        /// <summary>
        /// 其他信息
        /// </summary>
        [Text("其他")]
        other = 9


    }


    /// <summary>
    /// 信息有效期
    /// </summary>
    public enum EnumEffectTime
    {
        /// <summary>
        /// 一星期
        /// </summary>
        [Text("一星期")]
        Week = 7,
        /// <summary>
        /// 一个月
        /// </summary>
        [Text("一个月")]
        Month = 30,
        /// <summary>
        /// 三个月
        /// </summary>
        [Text("三个月")] 
        ThreeMonth=90,
        /// <summary>
        /// 半年
        /// </summary>
        [Text("半年")] 
        SixMonth = 180
    }

    /// <summary>
    /// 公司类型
    /// </summary>
    public enum EnumCompanyType
    {
        /// <summary>
        /// 贸易型
        /// </summary>
        [Text("贸易型")]
        Sell = 0,
        /// <summary>
        /// 生产型
        /// </summary>
        [Text("生产型")]
        Produce = 1,
        /// <summary>
        /// 服务型
        /// </summary>
        [Text("服务型")]
        Serve = 2,
        /// <summary>
        /// 其他类型
        /// </summary>
        [Text("其他类型")]
        Other = 3
    }
    /// <summary>
    /// 友情链接类型
    /// </summary>
    public enum EnumNetLinkType
    {
        /// <summary>
        /// 文字链接
        /// </summary>
        [Text("文字链接")]
        TextLink = 0,
        /// <summary>
        ///  图片链接
        /// </summary>
        [Text("图片链接")]
        PhotoLink = 1
    }


    /// <summary>
    /// 支付卡类型
    /// </summary>
    public enum EnumCardType
    {
        /// <summary>
        /// 系统卡(发卡由系统完成并且绑定使用者)
        /// </summary>
        [Text("系统卡")]
        SysCard = 0,
        /// <summary>
        /// 售卖卡(各种平台售卖,不绑定使用者)
        /// </summary>
        [Text("售卖卡")]
        SellCard = 1,
        /// <summary>
        /// 自由卡(不绑定使用者)
        /// </summary>
        [Text("自由卡")]
        FreeCard = 2,
        /// <summary>
        /// 活动卡(绑定使用者)
        /// </summary>
        [Text("活动卡")]
        ActivityCard = 3,
        /// <summary>
        /// 会员卡(直充会员,不绑定使用者)
        /// </summary>
        [Text("会员卡")]
        MembershipCard = 4,

        /// <summary>
        /// 其他类型卡
        /// </summary>
        [Text("其他类型卡")]
        OtherCard = 99


    }

    /// <summary>
    /// 支付卡状态
    /// </summary>
    public enum EnumCardState
    {
        /// <summary>
        /// 正常
        /// </summary>
        [Text("正常")]
        Normal = 0,
        /// <summary>
        /// 已使用
        /// </summary>
        [Text("使用")]
        Used = 1,
        /// <summary>
        /// 锁定
        /// </summary>
        [Text("锁定")]
        Lock = 2,
    }
    /// <summary>
    /// 手机验证状态(0:未认证,1:认证)
    /// </summary>
    public enum EnumMobileState
    {
        /// <summary>
        /// 已认证
        /// </summary>
        [Text("已认证")]
        Normal = 1,
        /// <summary>
        /// 未认证
        /// </summary>
        [Text("未认证")]
        No = 0
    }
    /// <summary>
    /// 性别
    /// </summary>
    public enum EnumSex
    {
        /// <summary>
        /// 保密
        /// </summary>
         [Text("保密")]
        Hide =2,
        /// <summary>
        /// 先生
        /// </summary>
         [Text("先生")]
        Sir =1,
        /// <summary>
        /// 女士
        /// </summary>
         [Text("女士")]
        Madam = 0
    }

    /// <summary>
    /// 模版文件
    /// </summary>
    public enum EnumTemplateFile
    {
        /// <summary>
        /// 首页
        /// </summary>
        [Text("index.html")]
        index = 1,
        /// <summary>
        /// 往期团购
        /// </summary>
        [Text("indexLast.html")]
        indexLast = 2,
        /// <summary>
        /// 往期团购
        /// </summary>
        [Text("tuandetail.html")]
        TuanDetail = 3,
         /// <summary>
        /// 往期团购
        /// </summary>
        [Text("team.html")]
        team = 4,
         /// <summary>
        /// 注册
        /// </summary>
        [Text("LoginAndReg.html")]
        LoginAndReg = 5,
          /// <summary>
        /// 购买/下单页面
        /// </summary>
        [Text("buy.html")]
        Buy = 6,
        /// <summary>
        /// 消息页
        /// </summary>
        [Text("messages.html")]
        Messages = 7,
        /// <summary>
        /// 消息页
        /// </summary>
        [Text("help.html")]
        Help = 8


    }


    /// <summary>
    /// 商品状态
    /// </summary>
    public enum EnumProductStatus
    {
        /// <summary>
        /// 停用
        /// </summary>
        [Text("未发布")]
        Deactivate = 0,
        /// <summary>
        /// 发布
        /// </summary>
        [Text("已发布")]
        Published = 1,
        /// <summary>
        /// 删除
        /// </summary>
        [Text("已删除")]
        Delete = 2


    }

    /// <summary>
    /// 订单状态
    /// </summary>
    public enum EnumOrderStatus
    {
        /// <summary>
        /// 未审核
        /// </summary>
        [Text("未审核")]
        Unaudited = 0,
        /// <summary>
        /// 已审核
        /// </summary>
        [Text("已审核")]
        HaveAudited = 1,
        /// <summary>
        /// 已锁定
        /// </summary>
        [Text("已锁定")]
        Locked = 2,
        /// <summary>
        /// 已发货
        /// </summary>
        [Text("已发货")]
        Shipped = 3,
        /// <summary>
        /// 已完成
        /// </summary>
        [Text("已完成")]
        Completed = 4,
 

    }

    /// <summary>
    /// 评论状态
    /// </summary>
    public enum EnumCommentStatus
    {
        /// <summary>
        /// 未审核
        /// </summary>
        [Text("未审核")]
        Unaudited = 0,
        /// <summary>
        /// 已审核
        /// </summary>
        [Text("已审核")]
        HaveAudited = 1,
        /// <summary>
        /// 已锁定
        /// </summary>
        [Text("已锁定")]
        Locked = 2
    }

    
    /// <summary>
    /// 商品置顶状态
    /// </summary>
    public enum EnumProductIsTop
    {
        /// <summary>
        /// 正常
        /// </summary>
        [Text("正常")]
        False = 0,

        /// <summary>
        /// 置顶
        /// </summary>
        [Text("置顶")]
        True = 1
    }




}
